home *** CD-ROM | disk | FTP | other *** search
- /*
- IMAGE FX GRADUALLY BLUR IMAGE
- By J.L. White
- ©1994 Merlin's Software
-
- Apply Blur Function To An Image Gradually Over Time
- ImageFX Script
-
- Batch Factory Batch Conversion Scripts are basically Arexx scripts that
- allow you to pass certain parameters to the external program you wish
- to use to convert the images from one format to another. You can pass
- five different strings from Batch Factory to the script by using the
- following commands:
-
- $N = This will pass the current selected filename.
- $P = This will tell Batch Factory to ask for a path to save new frames to.
- $# = This will pass the current frame number in the script.
- $T = This will pass the total number of frames in the script.
- $A = This will pass an offset number to be used to save frames with.
-
- NOTE: The following line is required to work as a Batch Factory Script:
-
- PARSE=$N
-
- */
-
- options results
- call Locate_ImageFX
-
- address "IMAGEFX.1"
- arg InPic
-
- ScreenToFront
- RequestSlider '"Enter Blur Intensity:!"' 1 16 8
- BlurNum = Result
- RequestString '"Enter Path & Base Name To Use For Images!"'
- BaseName = Result
- RequestSlider '"Enter Amount Of Frames To Create!"' 1 120 60
- FrameNum = Result
-
- LoadBuffer InPic Force Smooth
- do x = 1 to FrameNum
- Blur BlurNum
- SaveBufferAs ILBM BaseName""right(x,3,'0')
- end
- exit
-
- Locate_ImageFX:
- if (POS('IMAGEFX.1',SHOW('Ports')) = 0)
- then do
- address command 'run < nil: > nil: IMAGEFX:ImageFX'
- address command 'wait 7'
- end
- return
-
-